# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route, build_form
from forms.binary_solo import BinarySoloFormHandler

# define our routes
game_routes = [
               build_form('binary_solo', BinarySoloFormHandler),
               build_route('restart','RestartHandler'),
               build_route('home','HomeHandler'),
               build_route('cpu','CPUHandler'),
               build_route('busnodriver','BusNoDriverHandler'),
               build_route('Binary_Monster','Binary_Monster_Handler'),
               build_route('fail','FailHandler'),
               build_route('register','RegisterHandler'),
               build_route('ramroom','RAMHandler'),
               build_route('harddrive','HardDriveHandler'),
               build_route('VictoryRoom', 'VictoryRoomHandler'),
               build_route('Monitor', 'MonitorHandler'),
               build_route('VideoCard','VideoCardHandler'),
               default_route('home', 'HomeHandler'),
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
